package com.shengzai.stream

import com.alibaba.fastjson.{JSON, JSONObject}


object Demo5Json {

  def main(args: Array[String]): Unit = {

    val jsonStr: String =
      """
        |{"car":"皖A9A7N2","city_code":"340500","county_code":"340522","card":117988031603010,"camera_id":"00001","orientation":"西南","road_id":34052055,"time":1614711895,"speed":36.38}
        |""".stripMargin

    val jsonObj: JSONObject = JSON.parseObject(jsonStr)
    println(jsonObj.get("car"))

  }

}
